<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="com.master.entity.School" %>
<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="sys/Css/bootstrap.css" />
    <link rel="stylesheet" type="text/css" href="sys/Css/bootstrap-responsive.css" />
    <link rel="stylesheet" type="text/css" href="sys/Css/style.css" />
    <script type="text/javascript" src="sys/Js/jquery.js"></script>
    <script type="text/javascript" src="sys/Js/jquery.sorted.js"></script>
    <script type="text/javascript" src="sys/Js/bootstrap.js"></script>
    <script type="text/javascript" src="sys/Js/ckform.js"></script>
    <script type="text/javascript" src="sys/Js/common.js"></script>

 

    <style type="text/css">
        body {
            padding-bottom: 40px;
        }
        .sidebar-nav {
            padding: 9px 0;
        }

        @media (max-width: 980px) {
            /* Enable use of floated navbar text */
            .navbar-text.pull-right {
                float: none;
                padding-left: 5px;
                padding-right: 5px;
            }
        }


    </style>
</head>
<body>
<form class="form-inline definewidth m20" action="UserServlet?type=getUserByName" method="get">   
	     <button type="button" class="btn btn-primary" id="updatenew" onclick="update();">更改管理员账号</button>&nbsp;&nbsp; 
		 <button type="button" class="btn btn-success" id="addnew" onclick="goPage();">新增学校</button>

</form>
<table class="table table-bordered table-hover definewidth m10">
    <thead>
    <tr>
        <th>序号</th>
        <th>学校名称</th>
    </tr>
    </thead>
       <%
       List<School> list = (List<School>)request.getAttribute("list");
       for(School s:list){%>
	     <tr>
            <td><%=s.getId() %></td>
            <td><%=s.getName() %></td>
            <td>
                <a href="sys/User/Information.jsp?id=<%=s.getId() %>">查看</a>
            </td>
        </tr>
        <%} %>
</table>
</body>
</html>
<script>
function goPage(){
    window.location.href="sys/User/userEdit.jsp";
}
function update(){
    window.location.href="sys/User/userUpdate.jsp";
}

</script>